package com.xx.service.impl;

import lombok.RequiredArgsConstructor;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;

/**
 * TODO
 *
 * @Author kzw
 * @Date 2025/3/27 15:28
 */
@Service("userService")
@RequiredArgsConstructor
public class UserDetailsServiceImpl implements UserDetailsService {

    @Override
    public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
        // 这里实现你的用户加载逻辑
        // 例如：从数据库加载用户信息
        throw new UsernameNotFoundException("暂未实现用户认证");
    }
}
